package blt.app_core.api.login;

import blt.app_core.api.base.IBaseApi;
import blt.app_core.http.Http;

/**
 * Created by xgp on 2017/6/12.
 */

public interface LoginApi extends IBaseApi {
    String LOGIN = "LOGIN";

    String TEST = "onGetVerCode";
    String onNickBack="onNickBack";
    String onLogout="onLogout";

//    String ON_ERROR = "onError";

    /**
     * 登陆
     * onloging();
     *
     * @param user
     * @param password
     */
    void login(String user, String password);

    String ON_LOGIN = "onLogin";

    /**
     * 登出
     */
    void logout();

    /**
     * 是否登陆
     */
    boolean isLogin();

    /**
     * 修改密码
     */
    void modifyPwd(String phone,String pwd);
    String onModify="onModify";

    /**
     * 忘记密码
     */
    void forgetPassword(String username, String password, String verCode);

    /**
     * 获取验证码
     */

    String getVerCode(String phone);


    void register(String verCode, String username, String password);

    String REGISTER = "onRegister";

    void modifyNick(String nick);
    String onModifyNick="onModifyNick";

//    void upload(String path);

    void getUserInfo();
    String onUserInfo="onUserInfo";

}
